package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Data
@TableName("sc_copyright_auction_record")
@ApiModel(value = "sc_copyright_auction_record 对象", description = "版权拍卖记录")
public class CopyrightAuctionRecord extends SuperEntity implements Serializable {
    @ApiModelProperty(value = "拍卖id")
    private Long copyrightAuctionId;

    @ApiModelProperty(value = "藏品id")
    private Long collectionId;

    @ApiModelProperty(value = "用户藏品id")
    private Long userCollectionId;

    @ApiModelProperty(value = "用户设置的起拍价")
    private Integer startPrice;

    @ApiModelProperty(value = "拍卖开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auctionStartTime;

    @ApiModelProperty(value = "拍卖结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auctionEndTime;

    @ApiModelProperty(value = "报名用户Id")
    private Long userId;

    @ApiModelProperty(value = "是否生成拍卖结果")
    private Boolean haveResult;

}
